package janino;

public class ClassLoaderService {

    private static ClassLoader classLoader;

    public static void setClassLoader(ClassLoader classLoader) {
        ClassLoaderService.classLoader = classLoader;
    }

    public static Class<?> loadClass(String fullClassName) throws ClassNotFoundException {
        return classLoader.loadClass(fullClassName);
    }
}